package com.edu.client.service.impl;

import com.edu.client.pojo.Student;
import com.edu.client.service.StudentService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;

@Service
public class DefaultStudentServiceImpl implements StudentService {

	@Override
	public List<Student> getStudentList() {
		List<Student> students = new ArrayList<>();
		Student student = new Student();
		students.add(student);
		student.setId(UUID.randomUUID().toString());
		student.setSex((int) (System.currentTimeMillis()%2));
		student.setBirthdy(new Date());
		student.setName("litter Xm");
		return students;
	}
}
